package cn.edu.scau.cmi.wangzm.client;

import java.io.IOException;

import cn.edu.scau.cmi.wangzm.singleton.SingletonController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.SplitPane;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class SingletonClient extends Application{
    private Stage primaryStage;

    public SingletonClient() {
		// TODO Auto-generated constructor stub
	}
	@Override
	public void start(Stage primaryStage) throws Exception {
		// TODO Auto-generated method stub
		this.primaryStage = primaryStage;
        this.primaryStage.setTitle("实验一：单例模式/多例模式");
        Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/wangzm/singleton/Singleton.fxml"));
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
	}
    public static void main(String[] args) {
        launch(args);
    }

}
